import request from '@/utils/request';

// 挂号列表
export const registerList = params => request({
    url: '/business/register/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 列表(全部权限)
export const registerListAll = params => request({
    url: '/business/register/listAll',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 列表(看诊专用)
export const registerVisitList = params => request({
    url: '/business/register/visit/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 挂号新增
export const registerAdd = params => request({
    url: '/business/register/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 挂号更新
export const registerUpdate = params => request({
    url: '/business/register/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 挂号删除
export const registerDel = params => request({
    url: '/business/register/delete',
    method: 'GET',
    params
});
// 挂号关闭
export const registerClose = params => request({
    url: '/business/register/close',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 挂号分号
export const registerDistribution = params => request({
    url: '/business/register/distribution',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 退费
export const registerBack = params => request({
    url: '/business/register/back',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 获取挂号费信息
export const getRegisterInfo = params => request({
    url: '/business/register/getRegisterInfo',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 挂号导出
export const registerExport = params => request({
    url: '/business/register/export',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// -------------pos支付-----------------
// pos支付
export const posPay = params => request({
    url: '/business/pos/pay',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// -------------快速挂号-----------------
// 快速挂号
export const quickRegister = params => request({
    url: '/business/register/quickRegister',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// -------------挂号缴费-----------------
// 挂号缴费
export const registerPay = params => request({
    url: '/business/register/pay',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
